package sis.util;/*
* @auther 顶风少年 
* @mail dfsn19970313@foxmail.com
* @date 2019-08-05 12:48
* @notify 
* @version 1.0
*/

import javax.swing.*;
import java.awt.*;

public class ImageUtil {
    public static Image create(String path){
        java.net.URL imageURL = ImageUtil.class.getResource(path);
        if(imageURL==null){
            return null;
        }
        return new ImageIcon(imageURL).getImage();
    }
}
